import Vue from 'vue'
import Router from 'vue-router'
//登录页
import Login from './components/Login.vue'
//PC访客聊天页
import ChatPage from './components/ChatPage.vue'
//H5访客聊天
import ChatApp from './components/ChatApp.vue'
//客服主面板
import Main from './components/Main.vue'
//在线访客页
import OnlineVisitor from './components/OnlineVisitor.vue'
//chatGPT聊天
import ChatGPT from './components/chatGPT.vue'
//chatpdf
import chatPDF from './components/chatPDF.vue'
//一路发客户定制
import chatELF from './components/chatELF.vue'
//等等

Vue.use(Router)

export default new Router({
  routes: [
	  { path: '/login', component: Login },
	  { path: '/chatGPT', component: ChatGPT },
	  { path: '/chatPage', component: ChatPage },
	  { path: '/chatApp', component: ChatApp },
	  { path: '/chatELF', component: chatELF },
	  { path: '/chatPDF', component: chatPDF },
	  { path: '/main', component: Main ,
		children:[
			{
			  path:'onlineVisitor',
			  component:OnlineVisitor
			},
		]
	  },
  ]
})